@include('layouts.Common.header')
<form name="actionForm" id="actionForm" class="_autoheight" method="post" autocomplete="off">
    @csrf
    <div class="form-group row">
        <label class="col-sm-2  col-form-label text-right"><i>*</i>群名称：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" name="data[name]" placeholder="">
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-2  col-form-label text-right"><i>*</i>token值(去掉链接，只取后面的hash)：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" name="data[token]" placeholder="">
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-2  col-form-label text-right"><i>*</i>机器人类型：</label>
        <div class="col-sm-8">
            <select class="selectpicker" name=data[kind]>
                <option>请选择机器人类型</option>
                <option value="自定义机器人">自定义机器人</option>
                <option value="群聊机器人">群聊机器人</option>
            </select>

        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-2  col-form-label text-right">自定义机器人加签值：</label>
        <div class="col-sm-3">
            <input type="text" class="form-control sign" name="data[sign]" placeholder="">
        </div>
        <label class="col-sm-2  col-form-label text-right">群聊机器人名称：</label>
        <div class="col-sm-3">
            <div class="selectrobot"></div>
        </div>
    </div>

    <input type="dosubmit" id="dosubmit" name="dosubmit" hidden />
</form>

{!! js() !!}
<script>
    $(function() {
        $(".selectrobot").select({!! json_encode($selectrobot) !!});
    })
</script>
